package com.lzm.listendemo.util;

import android.annotation.SuppressLint;
import android.content.Context;

public class SpUtil {

    private Context context;

    private SpUtil(Context context) {
        this.context = context;
    }

    @SuppressLint("StaticFieldLeak")
    private static volatile SpUtil singleton;

    public static SpUtil getInstance(Context context) {
        if (singleton == null) {
            synchronized (SpUtil.class) {
                if (singleton == null) {
                    singleton = new SpUtil(context);
                }
            }
        }
        return singleton;
    }

    public void test(){

    }
}
